package com.zxy.springbootactivemq;

import java.io.Serializable;

/**
 * @author zhangxuyuan
 * @version 1.0
 * @date 2020/11/22
 */
public class MyMessage implements Serializable {

    private String name;

    private String msg;

    public MyMessage() {
    }

    public MyMessage(String name, String msg) {
        this.name = name;
        this.msg = msg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override public String toString() {
        return "MyMessage{" +
            "name='" + name + '\'' +
            ", msg='" + msg + '\'' +
            '}';
    }
}
